package com.goldgov.notice.service;

import java.util.Calendar;
import java.util.Date;

/**
 * 通知公告bean
 * @ClassName: Notice
 */
public class Notice {

	private String noticeID;//通知公告id
	private String noticeContent;//公告内容
	private String userID;//创建人id
	private String userName;//创建人姓名
	private Integer activeState;//活跃状态 1.激活   2.删除
	private Integer publishState;//发布状态  1.未发送   2 已发送
	private String lastModifyTime;//最后修改时间
	private String[] userIDs;//人员id集合
	private String[] userNames;//人员姓名集合
	private String noticeName;//公告名称
	private String noticeType;//公告类型 
	private String receiveUserID;//收件人id
	private String receiveUserName;//收件人id
	private Integer receiptState;//是否回执 1.是  2.否
	private Integer sourceType;//创建类型 1.系统通知  2.自定义通知
	private String sourceID;//来源id(会议主键id) 
	private String receiptContent;//回执内容
	private String receiptDate;//回执时间
	private String state;//收件的回执状态
	private String videoUrl;//视频类通知地址
	
	
	private String scopeCode;//机构编码
	private Date createDate;	//创建时间
	private Date pulishDate;	//发布时间
	private String noticeUserId;
	private String meetingTime;//会议时间
	private String site;//会议地点
	private String time;//会议时长
	private String compere;//主持人
	private Integer sendNum;	//发送人数
	
	private Integer isRead;// 1未读2已读
	private Integer month;// 月份
	private String noticeContentMobile;//移动通知内容
	
	public String getNoticeContentMobile() {
		return noticeContentMobile;
	}
	public void setNoticeContentMobile(String noticeContentMobile) {
		this.noticeContentMobile = noticeContentMobile;
	}
	
	public Integer getMonth() {
		if (this.getPulishDate() != null) {
			Calendar calendar=Calendar.getInstance();
			calendar.setTime(this.getPulishDate());
			month = calendar.get(Calendar.MONTH) + 1;//第几个月
		}
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}
	
	
	public Integer getIsRead() {
		if (isRead == null) {
			isRead = 1;
		}
		return isRead;
	}
	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}
	public String getMeetingTime() {
		return meetingTime;
	}
	public void setMeetingTime(String meetingTime) {
		this.meetingTime = meetingTime;
	}
	public String getSite() {
		return site;
	}
	public void setSite(String site) {
		this.site = site;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getCompere() {
		return compere;
	}
	public void setCompere(String compere) {
		this.compere = compere;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getReceiptContent() {
		return receiptContent;
	}
	public void setReceiptContent(String receiptContent) {
		this.receiptContent = receiptContent;
	}
	public String getReceiptDate() {
		return receiptDate;
	}
	public void setReceiptDate(String receiptDate) {
		this.receiptDate = receiptDate;
	}
	public Integer getSourceType() {
		return sourceType;
	}
	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}
	public String getSourceID() {
		return sourceID;
	}
	public void setSourceID(String sourceID) {
		this.sourceID = sourceID;
	}
	public Integer getReceiptState() {
		return receiptState;
	}
	public void setReceiptState(Integer receiptState) {
		this.receiptState = receiptState;
	}
	public String[] getUserNames() {
		return userNames;
	}
	public void setUserNames(String[] userNames) {
		this.userNames = userNames;
	}
	public String getReceiveUserID() {
		return receiveUserID;
	}
	public void setReceiveUserID(String receiveUserID) {
		this.receiveUserID = receiveUserID;
	}
	public String getNoticeName() {
		return noticeName;
	}
	public void setNoticeName(String noticeName) {
		this.noticeName = noticeName;
	}
	public String getNoticeType() {
		return noticeType;
	}
	public void setNoticeType(String noticeType) {
		this.noticeType = noticeType;
	}
	public String[] getUserIDs() {
		return userIDs;
	}
	public void setUserIDs(String[] userIDs) {
		this.userIDs = userIDs;
	}
	public String getNoticeID() {
		return noticeID;
	}
	public void setNoticeID(String noticeID) {
		this.noticeID = noticeID;
	}
	public String getNoticeContent() {
		return noticeContent;
	}
	public void setNoticeContent(String noticeContent) {
		this.noticeContent = noticeContent;
	}
	public String getUserID() {
		return userID;
	}
	public void setUserID(String userID) {
		this.userID = userID;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getActiveState() {
		return activeState;
	}
	public void setActiveState(Integer activeState) {
		this.activeState = activeState;
	}
	public Integer getPublishState() {
		return publishState;
	}
	public void setPublishState(Integer publishState) {
		this.publishState = publishState;
	}
	public String getLastModifyTime() {
		return lastModifyTime;
	}
	public void setLastModifyTime(String lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getPulishDate() {
		return pulishDate;
	}
	public void setPulishDate(Date pulishDate) {
		this.pulishDate = pulishDate;
	}
	public Integer getSendNum() {
		return sendNum;
	}
	public void setSendNum(Integer sendNum) {
		this.sendNum = sendNum;
	}
	public String getNoticeUserId() {
		return noticeUserId;
	}
	public void setNoticeUserId(String noticeUserId) {
		this.noticeUserId = noticeUserId;
	}
	public String getScopeCode() {
		return scopeCode;
	}
	public void setScopeCode(String scopeCode) {
		this.scopeCode = scopeCode;
	}
	public String getReceiveUserName() {
		return receiveUserName;
	}
	public void setReceiveUserName(String receiveUserName) {
		this.receiveUserName = receiveUserName;
	}
	public String getVideoUrl() {
		return videoUrl;
	}
	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}
	
	
}
